//define(['jquery','router','routeConfig','cookie'],function(){
    //配置baseUrl
    var baseUrl = document.getElementById('main').getAttribute('data-baseurl');
    if(!window.console){
	   window.console={
	      log:function(v){}
	   }
	}
	function L(i){
	   return i;
	}
	function C(i){
	   return i;
	}
	Date.prototype.format = function(format) //author: meizz
	{
	  var o = {
	    "M+" : this.getMonth()+1, //month
	    "d+" : this.getDate(),    //day
	    "h+" : this.getHours(),   //hour
	    "m+" : this.getMinutes(), //minute
	    "s+" : this.getSeconds(), //second
	    "q+" : Math.floor((this.getMonth()+3)/3),  //quarter
	    "S" : this.getMilliseconds() //millisecond
	  }
	  if(/(y+)/.test(format)) format=format.replace(RegExp.$1,
	    (this.getFullYear()+"").substr(4 - RegExp.$1.length));
	  for(var k in o)if(new RegExp("("+ k +")").test(format))
	    format = format.replace(RegExp.$1,
	      RegExp.$1.length==1 ? o[k] :
	        ("00"+ o[k]).substr((""+ o[k]).length));
	  return format;
	} 
    /*
     * 文件依赖
     */
    var config = {
        baseUrl: baseUrl,  //依赖相对路径
        urlArgs: 'ver='+new Date().format('yyyyMMddhm'),//动态版本号，正式发布时需改为静态
        paths: {                    //如果某个前缀的依赖不是按照baseUrl拼接这么简单，就需要在这里指出
            router: '/static/js/lib/director.min',
            swiper: '/static/js/lib/swiper.min',
            jquery: '/static/js/lib/jquery.min',
            cookie: '/static/js/lib/jquery.cookie',
            qrcode: '/static/js/lib/jquery.qrcode',
            text: '/static/js/lib/text',
            Vue:'/static/js/lib/vue.min',
            echarts:'/static/js/lib/echarts.min',
            wx:['http://res.wx.qq.com/open/js/jweixin-1.0.0','/static/js/lib/jweixin-1.0.0'],
            tmpl: '/static/js/lib/tmpl'            //用于requirejs导入html类型的依赖
        }
//      ,
//      shim: {                     //引入没有使用requirejs模块写法的类库。
//          router: {
//              exports:'Router'
//          },
//          cookie: {
//              exprots:'$'
//          }
//      }
    };
    require.config(config);
    require(['jquery','Vue','router','routeConfig','i18n','config','footer','header'],function($,vue){
    });
// });
